package top.aylan.org.service;

import top.aylan.org.entity.Category;
import top.aylan.org.entity.CategoryExample;
import top.aylan.org.tools.Pager;

import java.util.List;

/**
 * Created by Administrator on 2018/12/24.
 */
public interface CategoryService {

    public List<Category> selectCategoryByPage(Pager pager) throws Exception;

    public List<Category> selectParentCategory() throws Exception;

    public int getCount(CategoryExample example) throws Exception;

    public Category findById(Integer id)throws Exception;

    public Category findByExample(CategoryExample example) throws Exception;

    public int delete(Integer id) throws Exception;

    public int save(Category category)throws Exception;

    public int updateById(Integer id,Category category)throws Exception;

    public List<Category>  selectAllCategory() throws Exception;
}
